/*********************************************************************************/
/*                                                                               */
/*      GPT Driver                                                               */
/*                                                                               */
/*      Last updated by:   CBS                                                   */
/*      Last update date:  2013/1/25                                             */
/*      Revision:          0                                                     */
/*      Copyright:         DENS0                                                 */
/*                                                                               */
/*********************************************************************************/

/*********************************************************************************/
/*  include files                                                                */
/*********************************************************************************/


#include "Gpt.h"
#include "Gpt_Cfg.h"
#include "MPC5674F_MVx264.h"  


void GptNotification_CHANNEL_RTI()
{
	
}

void GptNotification_CHANNEL_PIT_1()
{
  /* GPT292:this is for the notification callback function and should be implemented by the user.*/
  /* GPT086:The callback notifications shall be configurable as pointers to user defined functions */
  /* within the configuration structure. */
   SIU.GPDO[179].B.PDO = !(SIU.GPDO[179].B.PDO); 

}

void GptNotification_CHANNEL_PIT_2()
{
	
}

void GptNotification_CHANNEL_PIT_3()
{
	
}

void GptNotification_CHANNEL_PIT_4()
{
	
}


const Gpt_ConfigType GptConfigData[] =
{
  {
    0,
    GPT_CHANNEL_RTI,
    GPT_MODE_CONTINUOUS,
    NULL,
    ISR_Priority_1,
    0,
    TRUE,
  },
  {
    0,
    GPT_CHANNEL_PIT_1,
    GPT_MODE_CONTINUOUS,   
    GptNotification_CHANNEL_PIT_1,
    ISR_Priority_16,
    0,
    FALSE,
  },
  {
	0,
	GPT_CHANNEL_PIT_2,
	GPT_MODE_ONESHOT,
	GptNotification_CHANNEL_PIT_2,
	ISR_Priority_15,
	0,
	FALSE,
  },
  {
   0,
   GPT_CHANNEL_PIT_3,
   GPT_MODE_CONTINUOUS,
   NULL,
   ISR_Priority_14,
   0,
   FALSE,
  },
  {
   0,
   GPT_CHANNEL_PIT_4,
   GPT_MODE_ONESHOT,  
   NULL,
   ISR_Priority_13,
   0,
   FALSE,
  },
  
  {
	/*Last channel in list*/
   0,
   GPT_CHANNEL_ILL,
  }
};
